﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace com.zhongjh.Library.BaseClass
{
    public class FormBase : Form
    {
        private SortedDictionary<string, object> m_objViewList = new SortedDictionary<string, object>();

        public FormBase()
        {
            this.Load += FormBase_Load;
        }

        void FormBase_Load(object sender, EventArgs e)
        {
            InitBase();
        }

        public virtual void InitBase() { }

        public void InitSetView(object view)
        {
            if (!m_objViewList.ContainsKey(view.GetType().FullName))
            {
                m_objViewList.Add(view.GetType().FullName, view);
            }
        }


    }
}
